#bin/bash
###卸载mariadb数据库

echo -e "\033[37m 正在关闭mariadb数据库服务=============================================—————\033[31m"
systemctl stop mariadb
echo -e "\033[37m 正在卸载mariadb数据库服务=============================================—————\033[31m"
yum remove $(rpm -qa | grep mariadb) -y
yum remove  python2-PyMySQL -y
yum remove  expect -y
rm -rf $(find / -name mariadb)
rm -rf $(find / -name mysql)
echo -e "\033[37m 服务卸载完成\033[31m"
echo -e "\033[37m 正在删除文件=============================================—————\033[31m"
echo -e "\033[37m 程序文件删除完成\033[31m"
